<?php
<object class="Edit_garage" name="Edit_garage" baseclass="page">
  <property name="Background"></property>
  <property name="Caption">Edit Garage</property>
  <property name="Color">#000000</property>
  <property name="DocType">dtNone</property>
  <property name="Font">
    <property name="Size"></property>
  </property>
  <property name="Height">304</property>
  <property name="IsMaster">0</property>
  <property name="Name">Edit_garage</property>
  <property name="UseAjax">1</property>
  <property name="Width">744</property>
  <property name="OnCreate">Edit_garageCreate</property>
  <object class="Button" name="btnSubmit" >
    <property name="Caption">Update</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">25</property>
    <property name="Left">10</property>
    <property name="Name">btnSubmit</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">6</property>
    <property name="Top">232</property>
    <property name="Width">75</property>
    <property name="OnClick">btnSubmitClick</property>
  </object>
  <object class="Button" name="btnContactCancel" >
    <property name="Caption">Cancel</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">25</property>
    <property name="Left">94</property>
    <property name="Name">btnContactCancel</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">7</property>
    <property name="Top">232</property>
    <property name="Width">75</property>
    <property name="OnClick">btnContactCancelClick</property>
  </object>
  <object class="Label" name="Label8" >
    <property name="Caption">Edit Garage</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
        <property name="Size">15</property>
        <property name="Weight">bold</property>
    </property>
    <property name="Height">16</property>
    <property name="Left">10</property>
    <property name="Name">Label8</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">7</property>
    <property name="Width">103</property>
  </object>
  <object class="HiddenField" name="hiddenContact" >
    <property name="Height">18</property>
    <property name="Left">216</property>
    <property name="Name">hiddenContact</property>
    <property name="Top">5</property>
    <property name="Width">128</property>
  </object>
  <object class="Image" name="Image2" >
    <property name="Border">0</property>
    <property name="Height">9</property>
    <property name="ImageSource">image/divider.png</property>
    <property name="Link"></property>
    <property name="LinkTarget"></property>
    <property name="Name">Image2</property>
    <property name="Top">24</property>
    <property name="Width">368</property>
  </object>
  <object class="Edit" name="edname" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">100</property>
    <property name="Name">edname</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">1</property>
    <property name="Top">53</property>
    <property name="Width">260</property>
    <property name="jsOnBlur">ednameJSBlur</property>
  </object>
  <object class="Label" name="Label24" >
    <property name="Alignment">agRight</property>
    <property name="Caption">*Street:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">32</property>
    <property name="Name">Label24</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">123</property>
    <property name="Width">60</property>
  </object>
  <object class="Edit" name="edAddress" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">100</property>
    <property name="Name">edAddress</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">3</property>
    <property name="Top">119</property>
    <property name="Width">260</property>
    <property name="jsOnBlur">edAddressJSBlur</property>
  </object>
  <object class="Label" name="Label25" >
    <property name="Caption">Building:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">45</property>
    <property name="Name">Label25</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">89</property>
    <property name="Width">47</property>
  </object>
  <object class="Edit" name="edBldg" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">100</property>
    <property name="Name">edBldg</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">2</property>
    <property name="Top">85</property>
    <property name="Width">260</property>
  </object>
  <object class="ComboBox" name="cmbRegion" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">460</property>
    <property name="Name">cmbRegion</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder"></property>
    <property name="Top">57</property>
    <property name="Visible">0</property>
    <property name="Width">50</property>
    <property name="jsOnChange">cmbRegionJSChange</property>
  </object>
  <object class="Label" name="Label26" >
    <property name="Caption">Region:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">410</property>
    <property name="Name">Label26</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">61</property>
    <property name="Visible">0</property>
    <property name="Width">42</property>
  </object>
  <object class="ComboBox" name="cmbProvince" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">460</property>
    <property name="Name">cmbProvince</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder"></property>
    <property name="Top">89</property>
    <property name="Visible">0</property>
    <property name="Width">50</property>
    <property name="jsOnChange">cmbProvinceJSChange</property>
  </object>
  <object class="Label" name="Label27" >
    <property name="Caption">Province:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">403</property>
    <property name="Name">Label27</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">93</property>
    <property name="Visible">0</property>
    <property name="Width">49</property>
  </object>
  <object class="ComboBox" name="cmbMunicipality" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">460</property>
    <property name="Name">cmbMunicipality</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder"></property>
    <property name="Top">120</property>
    <property name="Visible">0</property>
    <property name="Width">50</property>
  </object>
  <object class="Label" name="Label28" >
    <property name="Caption">Municipality:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">384</property>
    <property name="Name">Label28</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">120</property>
    <property name="Visible">0</property>
    <property name="Width">68</property>
  </object>
  <object class="JTJavaScript" name="JSValidate" >
    <property name="Code"><![CDATA[function validateRequire(editBox, lblError)
{
 editValue = document.getElementById(editBox).value;
 //error = Number(document.getElementById('hfValidateError').value);
 if(editValue.length==0)
 {
  //alert('error');
  lblValue = document.getElementById(lblError).innerHTML = '&amp;darr; This field is required &amp;darr;';
  //alert(document.getElementById('hfValidateError').value); 
  //document.getElementById('hfValidateError').value = error + Number('1');
  //alert(document.getElementById('hfValidateError').value);
  //alert('error end');
 }
 else
 {
  lblValue = document.getElementById(lblError).innerHTML = '';
 }
}]]></property>
    <property name="Height">20</property>
    <property name="Left">183</property>
    <property name="Name">JSValidate</property>
    <property name="Top">284</property>
    <property name="Width">180</property>
  </object>
  <object class="HiddenField" name="hfError" >
    <property name="Height">18</property>
    <property name="Name">hfError</property>
    <property name="Top">284</property>
    <property name="Width">128</property>
  </object>
  <object class="Label" name="lblname" >
    <property name="Caption">lblname</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Align">taCenter</property>
        <property name="Color">#FF0000</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">100</property>
    <property name="Name">lblname</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">40</property>
    <property name="Width">260</property>
  </object>
  <object class="Label" name="lblAddress" >
    <property name="Caption">lblAddress</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Align">taCenter</property>
        <property name="Color">#FF0000</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">100</property>
    <property name="Name">lblAddress</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">106</property>
    <property name="Width">260</property>
  </object>
  <object class="Label" name="Label10" >
    <property name="Caption">*Location name:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
        <property name="Size">10</property>
    </property>
    <property name="Height">17</property>
    <property name="Name">Label10</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">57</property>
    <property name="Width">94</property>
  </object>
  <object class="JTJavaScript" name="JSRegionProvince" >
    <property name="Code"><![CDATA[var xmlhttp

function regionProvince()
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert (&quot;Your browser does not support AJAX!&quot;);
  return;
  }
var region = document.getElementById('cmbRegion').value;
var url=&quot;regionProvince.php&quot;;
url=url+&quot;?region=&quot;+region;
xmlhttp.onreadystatechange=stateChangedMake;
xmlhttp.open(&quot;GET&quot;,url,true);
xmlhttp.send(null);
}


function stateChangedMake()
{
if (xmlhttp.readyState==4)
  {
  var my_array = eval(xmlhttp.responseText);
  var cmbObj = document.getElementById('cmbProvince')
  cmbObj.length = 0;
  
  var row;
  for (row = 0; row &lt; my_array.length; row++)
  {
	var province = my_array[row][0];
	var id = my_array[row][1];
	var x = document.createElement('option');
	
	x.text = province;
	x.value = id;
	try
	{
		cmbObj.add(x,null); // standards compliant
	}
	catch(ex)
	{
	cmbObj.add(x); // IE only
	}
  }
  provinceMunicipality();
  }
}

function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
return null;
}]]></property>
    <property name="Height">20</property>
    <property name="Left">183</property>
    <property name="Name">JSRegionProvince</property>
    <property name="Top">240</property>
    <property name="Width">102</property>
  </object>
  <object class="JTJavaScript" name="JSProvinceMunicipality" >
    <property name="Code"><![CDATA[var xmlhttp

function provinceMunicipality()
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert (&quot;Your browser does not support AJAX!&quot;);
  return;
  }
var province = document.getElementById('cmbProvince').value;
var url=&quot;provinceMunicipality.php&quot;;
url=url+&quot;?province=&quot;+province;
xmlhttp.onreadystatechange=stateChangedProvince;
xmlhttp.open(&quot;GET&quot;,url,true);
xmlhttp.send(null);
}


function stateChangedProvince()
{
if (xmlhttp.readyState==4)
  {
  var my_array = eval(xmlhttp.responseText);
  var cmbObj = document.getElementById('cmbMunicipality');
  cmbObj.length = 0;
  
  var row;
  for (row = 0; row &lt; my_array.length; row++)
  {
	var province = my_array[row][0];
	var id = my_array[row][1];
	var x = document.createElement('option');
	
	x.text = province;
	x.value = id;
	try
	{
		cmbObj.add(x,null); // standards compliant
	}
	catch(ex)
	{
	cmbObj.add(x); // IE only
	}
  }
}
}

function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
return null;
}]]></property>
    <property name="Height">20</property>
    <property name="Left">183</property>
    <property name="Name">JSProvinceMunicipality</property>
    <property name="Top">262</property>
    <property name="Width">102</property>
  </object>
  <object class="Label" name="Label11" >
    <property name="Caption">*City:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">59</property>
    <property name="Name">Label11</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">156</property>
    <property name="Width">32</property>
  </object>
  <object class="Edit" name="edCity" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">100</property>
    <property name="Name">edCity</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">4</property>
    <property name="Top">152</property>
    <property name="Width">260</property>
    <property name="jsOnBlur">edCityJSBlur</property>
  </object>
  <object class="ComboBox" name="cmbCountry" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">100</property>
    <property name="Name">cmbCountry</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">5</property>
    <property name="Top">183</property>
    <property name="Width">260</property>
  </object>
  <object class="Label" name="Label13" >
    <property name="Caption">Country:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">44</property>
    <property name="Name">Label13</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">183</property>
    <property name="Width">51</property>
  </object>
  <object class="Label" name="lblCity" >
    <property name="Caption">lblst</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Align">taCenter</property>
        <property name="Color">#FF0000</property>
    </property>
    <property name="Height">12</property>
    <property name="Left">100</property>
    <property name="Name">lblCity</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">140</property>
    <property name="Width">260</property>
  </object>
  <object class="JTSiteTheme" name="JTSiteTheme1" >
        <property name="Left">319</property>
        <property name="Top">238</property>
    <property name="Name">JTSiteTheme1</property>
  </object>
</object>
?>
